package com.bckj.freshnow.order.convert;

import com.bckj.fastboot.core.mapstruct.MapStructConfig;
import com.bckj.freshnow.order.entity.TradeOrder;
import com.bckj.freshnow.order.model.TradeOrderResponse;
import com.bckj.freshnow.order.model.TradeOrderRequest;

import org.mapstruct.Mapper;

/**
 * 交易订单表(TradeOrder)数据转换
 *
 * @author makejava
 * @since 2025-04-22 10:19:44
 */
@Mapper(config = MapStructConfig.class)
public interface TradeOrderConvert {

    TradeOrder request2Bean(TradeOrderRequest request);
    
    TradeOrderResponse bean2Response(TradeOrder bean);
}
